package com.chihb.util;

import lombok.Data;

/**
 * @author chihb
 * @create-time 2024/11/29 10:46
 * @description
 */

public enum LoginEnum{
    LOGIN_SUCCESS(0,"登录成功"),
    LOGIN_FAIL(1,"登录失败"),
    LOGIN_EXPIRED(2,"登录过期"),
    LOGIN_ERROR(3,"登录错误"),
    LOGIN_OUT(4,"退出登录"),
    LOGIN_OUT_ERROR(5,"退出登录失败"),
    LOGIN_OUT_SUCCESS(6,"退出登录成功"),
    LOGIN_OUT_EXPIRED(7,"退出登录过期"),
    LOGIN_OUT_ERROR_EXPIRED(8,"退出登录错误过期"),
    REGISTER_SUCCESS(9,"注册成功"),
    ;
    private Integer code;
    private String msg;

    LoginEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
